﻿@model PageList<AqpxPayOrder>
@*<th class="w100px" data-order="@nameof(AqpxPayOrder.trade_end_time)">支付完成时间</th>
    <td class="">@record.trade_end_time</td>
    <th class="w80px" data-order="@nameof(AqpxPayOrder.trade_state)">交易状态</th>
     <td class="">@record.trade_state</td>
*@
<table class="table table-striped table-bordered table-hover table-fix table-manage">
    <thead>
        <tr>
            <th class="w100px" data-order="@nameof(AqpxPayOrder.name)">姓名</th>
            <th class="w150px" data-order="@nameof(AqpxPayOrder.id_card)">身份证号</th>
            <th class="w100px" data-order="@nameof(AqpxPayOrder.phone)">手机号码</th>
            <th class="w100px" data-order="@nameof(AqpxPayOrder.order_type_text)">支付类型</th>
            <th class="w180px" data-order="@nameof(AqpxPayOrder.out_trade_no)">支付订单号</th>
            <th class="w100px" data-order="@nameof(AqpxPayOrder.total_fee)">订单金额</th>
            <th class="w100px" data-order="@nameof(AqpxPayOrder.trade_state_desc)">交易状态</th>
            <th class="w100px" data-order="@nameof(AqpxPayOrder.create_date_time)">支付时间</th>
            <th class="w80px" data-order="@nameof(AqpxPayOrder.client_ip)">客户IP</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var record in Model)
        {
        <tr class="cursor-pointer" data-url="@Url.Action("Details",new {id = record.id})">
            <td class="">
                <a class="uimodal" data-backdrop="true" data-size="lg" data-url="@Url.Action("Details", new {id = record.id})">
                    @record.name
                </a>
            </td>
            <td class="">@record.id_card</td>
            <td class="">@record.phone</td>
            <td class="">
                @record.order_type_text
            </td>
            <td class="">@record.out_trade_no</td>
            <td class="">
                @if (!string.IsNullOrEmpty(record.total_fee) && !record.total_fee.Equals("null"))
                {
                    @((Convert.ToDecimal(record.total_fee) / 100).ToString("0.##"))
                }
            </td>
            <td class="">@record.trade_state_desc</td>
            <td class="text-center">@DateTimeHelper.FormatDateHasSecond(record.create_date_time)</td>
            <td class="">@record.client_ip</td>
        </tr>
        }
    </tbody>
</table>
@Html.RenderPages(Model)